Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update svgo.config.js to preserve removeViewBox #2383

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Update svgo.config.js to preserve removeViewBox #2383

merged 1 commit into from
Nov 21, 2023

Conversation

six7
Copy link
Collaborator

@six7 six7 commented Nov 20, 2023

Fixes an issue on main with svgo's new config

Before

CleanShot 2023-11-20 at 23 19 55@2x

After

CleanShot 2023-11-20 at 23 18 25@2x

Copy link

changeset-bot bot commented Nov 20, 2023

⚠️ No Changeset found

Latest commit: b9dc254

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

PR Analysis

  • 🎯 Main theme: The PR is about updating the svgo.config.js file to preserve the removeViewBox option.
  • 📝 PR summary: The PR updates the svgo.config.js file to change the removeViewBox option from true to false. This change is intended to fix an issue with svgo's new config.
  • 📌 Type of PR: Bug fix
  • 🧪 Relevant tests added: No
  • ⏱️ Estimated effort to review [1-5]: 1, because the PR is small and straightforward, involving only a single file and a simple configuration change.
  • 🔒 Security concerns: No

PR Feedback

  • 💡 General suggestions: The PR is straightforward and addresses the issue described. However, it would be beneficial to include a test case to verify the expected behavior after the change.

  • 🤖 Code feedback:

    • relevant file: svgo.config.js
      suggestion: Consider adding a comment above the 'removeViewBox' line to explain why it is set to false. This can help future developers understand the reasoning behind this configuration. [medium]
      relevant line: removeViewBox: false,

How to use

Instructions

To invoke the PR-Agent, add a comment using one of the following commands:
/review: Request a review of your Pull Request.
/describe: Update the PR title and description based on the contents of the PR.
/improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback.
/ask <QUESTION>: Ask a question about the PR.
/update_changelog: Update the changelog based on the PR's contents.
/add_docs: Generate docstring for new components introduced in the PR.
/generate_labels: Generate labels for the PR based on the PR's contents.
see the tools guide for more details.

To edit any configuration parameter from the configuration.toml, add --config_path=new_value.
For example: /review --pr_reviewer.extra_instructions="focus on the file: ..."
To list the possible configuration parameters, add a /config comment.

Copy link
Contributor

Commit SHA:675df00ede9e326d2e07a96eebb979899e10147d
No changes to code coverage between the base branch and the head branch

@six7 six7 merged commit 963884b into main Nov 21, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants